package poc.scc.core;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Embeddable
public class ContaBancaria implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Column(name="conta_numero")
	private String numero;
	
	@Column(name="conta_agencia")
	private String agencia;
	
	
	@ManyToOne
	@JoinColumn(name="banco_id")
	private Banco banco;
	
	public Banco getBanco() {
		return banco;
	}
	public void setBanco(Banco banco) {
		this.banco = banco;
	}


}
